import cv2

dst = cv2.imread('7/005.png')
dst = cv2.resize(dst, (640, 480))

def denoised_avg(dst):
    dst = cv2.blur(dst, (3, 5))
    cv2.imshow('avg', dst)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

def denoised_median(dst):
    dst = cv2.medianBlur(dst, 3)
    cv2.imshow('median', dst)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

def denoised_gaussian(dst):
    dst = cv2.GaussianBlur(dst, (3, 3), sigmaX=0)
    cv2.imshow('gaussian', dst)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

def denoised_bilateral(dst):
    dst = cv2.bilateralFilter(dst, d=0, sigmaColor=75, sigmaSpace=75)
    cv2.imshow('gbilateralFilter', dst)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

def main(dst):
    denoised_avg(dst)
    denoised_median(dst)
    denoised_gaussian(dst)
    denoised_bilateral(dst)

if __name__ == '__main__':
    main(dst)